#include "BackGround.h"
#include "GameScene.h"
#include "DataM.h"
#include "SceneM.h"
#include "DataM.h"
#include <string>

bool BackGround::init()
{
	int level = DataM::getInstance()->getLevelId();
	stringstream ss;
	ss << "bg" << level << ".png";
	string picture = ss.str();

	CCSprite* bg = CCSprite::create(picture);

	
	bg->setTag(10);
	bg->setPosition(SCREEN_CX, SCREEN_CY);
	this->addChild(bg);
	return true;
	
		

}